package P1000;

import java.util.Scanner;

/**
 * @author: zhouyang
 * @descrpition:
 * @time: 2019-10-08 11:08
 */
public class P1046_陶陶摘苹果 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] heights = new int[10];
        for(int i=0;i<10;++i) heights[i] = scanner.nextInt();
        int max = scanner.nextInt()+30;
        scanner.close();
        int res = 0;
        for(int i:heights){
            if(i <= max) ++res;
        }
        System.out.println(res);
    }
}
